import React, { useEffect } from 'react';
// @ts-ignore
import { HwSettingAuthRoot, useHwSettingAuthControl } from 'umi';
import Test from '../components/Test';
const authDatas = {
  pp: ['pp'],
  test: ['test:index:component'],
};
const SettingIndex = () => {
  const { initAuth } = useHwSettingAuthControl();
  useEffect(() => {
    initAuth({
      appKeyList: ['pp', 'childPkey'],
      authData: JSON.stringify(authDatas),
    });
  }, []);
  return (
    <div>
      <Test />
    </div>
  );
};
export default () => {
  return (
    <HwSettingAuthRoot>
      <SettingIndex />
    </HwSettingAuthRoot>
  );
};
